{extend name="layout" /}

{block name="page-header"}
<link rel="stylesheet" href="//at.alicdn.com/t/font_626784_mcjb2yy4vfl.css" />
<link rel="stylesheet" href="__ADMIN_CSS__/canteen.css">
{/block}

{block name="content"}
{notempty name="default_pass"}
<!--<div class="alert alert-warning">
  <a href="#" class="close" data-dismiss="alert">&times;</a>
  <strong>警告！</strong>您的网络连接有问题。
</div>-->
{/notempty}

{// 后台首页钩子}

<div class="row">
  <div class="col-md-12">
    <div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
      <div class="block">
        <div class="block-header bg-gray-lighter ">
          <ul class="block-options">
            <li><button type="button" class="page-reload"><i class="si si-refresh"></i></button></li>
            <li><button type="button" data-toggle="block-option" data-action="fullscreen_toggle">
              <i class="glyphicon glyphicon-refresh"></i></button></li>
          </ul>
          <h4 class="text-muted ">收银台</h4>
        </div>
        <div class="block-content tab-content">
          <div class="tab-pane active">
            <div class="push-5-t push-50 animated fadeIn ">
              <div class="text-center data-time">
                <p id="Date-week"></p>
                <p id="time"></p>
                <p><h2 id="option-status"><span class="label label-default">待执行...</span></h2></p>
              </div>

              <div class="panel panel-info">
                <div class="panel-heading">
                  <h3 class="panel-title">企业单位: {:session('user_auth.company_name')}</h3>
                </div>
                <div class="panel-body">
                  <form class="js-validation-login form-horizontal push-5-t" action="" method="post" id="formData" >
                    <div class="row">

                      <div class="col-lg-12" id="type-data">
                        <label class="css-input switch switch-sm switch-primary" >预定餐
                          <input  type="checkbox" data-id="YD" name="isReserve" value="YDC" checked="">
                          <span></span>
                        </label>
                        <label class="css-input switch switch-sm switch-primary" >消费卡
                          <input  type="radio"  data-id="FC" name="payType" value="FC" checked>
                          <span></span>
                        </label>
                        <label class="css-input switch switch-sm switch-primary" >次数卡
                          <input  type="radio" data-id="CC" name="payType" value="CC" >
                          <span></span>
                        </label>
                      </div>

                      <div class="col-lg-12">
                        <label class="col-xs-12" >扣减餐费 <code id="payAmount"></code></label>
                        <div class="input-group">
                          <span class="input-group-addon"><i class="glyphicon glyphicon-usd"></i></span>
                          <input class="form-control" type="number"  name="payAmount" value="10"
                                 min="0" max="200" required="required"
                                 placeholder="请输入金额"  autocomplete="off"
                          >
                          <span class="input-group-addon">元</span>
                        </div>
                      </div>
                      <div class="col-lg-12">
                        <label class="col-xs-12">条码框 <code id="cardCode"></code></label>
                        <div class="input-group">
                          <span class="input-group-addon"><i class="fa fa-fw fa-key"></i></span>
                          <input class="form-control" type="password" name="cardCode"
                                 autofocus="autofocus" required="required"
                                 placeholder="请使用条码枪进行扫客户二维码"
                                 autocomplete="off"
                          >
                          <span class="input-group-btn">
                          <button class="btn btn-default" type="button">
                            <i class="dzwfont dzw-saomiao" id="saoyisao"></i>
                          </button>
                        </span>
                        </div><!-- /input-group -->
                      </div><!-- /.col-lg-6 -->
                    </div>

                    <div class="form-group push-20-t">
                      <div class="col-xs-12 col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4">
                        <button class="btn btn-block btn-primary" type="submit" id="submitBtn">发送</button>
                      </div>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

{/block}


{block name="script"}
<script src="__ADMIN_JS__/canteen.js"></script>
<!--<script>
  $(document).ready(function () {
    $.ajax({
      url: '{:url("checkUpdate")}',
      type: 'GET'
    }).done(function(data) {
      $('#product-auth').html(data.auth);
      $('#product-update').html($('#product-update').text() + ' ' + data.update);
    });
  });
</script>-->
{/block}